package cn.edu.lzzy.controllers;

/**
 * 全局配置绑定
 */

import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ModelAttribute;

@ControllerAdvice
public class GlobalController{
        @ModelAttribute
         public void addGlobalData(Model model){
        model.addAttribute("contact","lzzy@163.com");
        model.addAttribute("homeUrl","https://www.baidu.com");
        }
}
